package com.example.course.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 活动视图对象
 *
 * @author Jasmine-drs
 * @date 2025-04-22
 */
@Data
@ApiModel(value = "活动VO", description = "活动视图对象")
public class ActivityVO {

	@ApiModelProperty(value = "活动ID", example = "1")
	private Integer id;

	@ApiModelProperty(value = "活动标题", example = "春季技术分享会")
	private String title;

	@ApiModelProperty(value = "活动介绍", example = "本次活动将分享最新技术趋势")
	private String introduction;

	@ApiModelProperty(value = "封面图地址", example = "https://example.com/image.jpg")
	private String coverUrl;

	@ApiModelProperty(value = "创建时间", example = "2023-06-01 10:00:00")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;

	@ApiModelProperty(value = "更新时间", example = "2023-06-01 10:00:00")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateTime;
} 